From: Johannes Berg Date: Tue, 14 Oct 2008 14:38:55 +0000 (+0200) Subject: mac80211: add might_sleep to hw_config X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~24870^2~878 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi//%22https:/bugzilla.%22/%22http:/www.example.com/cgi/%22https:/bugzilla.%22?a=commitdiff_plain;h=cb121bad67a32cde37adc2729b7e18aa4fd3063e;p=linux-4.9.git mac80211: add might_sleep to hw_config Just to catch bugs when changing mac80211. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/main.c b/net/mac80211/main.c index ab8a860444af..ffff54944f9d 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) int ret = 0; int power; + might_sleep(); + if (local->sw_scanning) chan = local->scan_channel; else